package com.ccmusic.service.impl;

import java.util.List;

import com.ccmusic.dao.SingerDao;
import com.ccmusic.dao.impl.SingerDaoImpl;
import com.ccmusic.entity.Singer;
import com.ccmusic.service.SingerService;

public class SingerServiceImpl implements SingerService {

	SingerDao sd = new SingerDaoImpl();

	// 添加歌手
	public boolean addSinger(Singer singer) {

		return sd.addSinger(singer);
	}

	// 根据歌手名删除歌手
	public boolean deleteSingerByName(String sname) {

		return sd.deleteSingerByName(sname);
	}

	// 根据歌手名查询，可模糊查询
	public List<Singer> getSingerLikeName(String likename) {

		return sd.getSingerLikeName(likename);
	}

	// 查询全表
	public List<Singer> getAllSinger() {

		return sd.getAllSinger();
	}

	/**
	 * 根据歌曲id删除歌手表中对应的记录
	 * 
	 * @author zhujz
	 * @param mid
	 *            歌曲id
	 * @return 删除成功返回true；删除失败返回false
	 */
	public boolean delSingerByMid(String mid) {
		// TODO Auto-generated method stub
		return false;
	}

}
